import { request, requestOther } from '@/utils/request';
import type { PageData } from '@/api/model/pageModel';
import type {
  capitalModel,
  integralPriceModel,
  integralInfoModel,
  goldInfoModel,
  withdrawInfoModel
} from '@/api/model/capitalModel';

const Api = {
  CapitalInfo: '/capital/info', //资产信息

};


//获取农历信息
export function fetchNongli() {
  return requestOther.get<object>({
    url:import.meta.env.VITE_API_URL+'/api/bazi/today',
  });
}

//获取八字排盘
export function fetchBazi(d:any)
{
	return requestOther.post<object>({
	  url:import.meta.env.VITE_API_URL+'/api/bazi/paipan',
	  data:d
	});
}
//获取或创建八字订单
export function getBaziOrder(d:any)
{
	return requestOther.post<object>({
	  url:import.meta.env.VITE_API_URL+'/api/bazi/order',
	  data:d
	});
}

//测八字
export function testBazi(d:any)
{
	return requestOther.post<object>({
	  url:import.meta.env.VITE_API_URL+'/api/bazi/test',
	  data:d
	});
}

//查询八字测算记录
export function getTestList(d:any)
{
	return requestOther.get<object>({
	  url:import.meta.env.VITE_API_URL+'/api/bazi/testlist?page='+d.current+'&pagesize='+d.pageSize,
	});
}

